package com.prik.strategy.discount.strategies;

import com.prik.strategy.discount.DiscountStrategy;

import java.math.BigDecimal;

/**
 * vip客户策略实现，九折
 *
 * @author prik
 * @date 2019/7/18
 */
public class VipDiscountStrategy implements DiscountStrategy {
    @Override
    public BigDecimal calDiscountPrice(BigDecimal originalPrice) {
        System.out.println("VIP客户，九折优惠~");
        return originalPrice.multiply(new BigDecimal("0.9"));
    }
}
